package com.cl.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_recruit")
@ApiModel(value = "Recruit对象", description = "招聘表")
public class Recruit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("岗位名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("岗位要求")
    @TableField("demand")
    private String demand;

    @ApiModelProperty("工作城市")
    @TableField("city")
    private String city;

    @ApiModelProperty("hr_id")
    @TableField("hr_id")
    private Integer hrId;

    @ApiModelProperty("发布时间")
    @TableField("publish_time")
    private LocalDateTime publishTime;

    @ApiModelProperty("截至时间")
    @TableField("deadline")
    private LocalDateTime deadline;

    @ApiModelProperty("招聘人数")
    @TableField("number")
    private Integer number;

    @ApiModelProperty("审核状态")
    @TableField("status")
    private String status;

    @ApiModelProperty("最低薪资")
    @TableField("minimum_salary")
    private Integer minimumSalary;

    @ApiModelProperty("最高薪资")
    @TableField("maximum_salary")
    private Integer maximumSalary;

    @ApiModelProperty("公司id")
    @TableField("enterprise_id")
    private Integer enterpriseId;


}
